<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<?php
        require './home/config.php';
        $sql = "select * from config where webname ='恩爱婚介'";
        $result = mysqli_query($link,$sql);
        $rows = mysqli_fetch_assoc($result);
        if($rows['status'] == 1){
            echo "<script>window.location.href='./home/index.php';</script>";
        }else{
            echo "<script>window.location.href='./home/error.php';</script>";
        }
        mysqli_free_result($result);
        mysqli_close($link);
?>

</body>
</html>